<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // const arr = [100, 60, 80]
        //数组解构 赋值
        //const [max, min, avg] = arr
        // const max = arr[0]
        // const min = arr[1]
        // const avg = arr[2]
        //console.log(max) //100

        let a = 1
        let b = 2;
        [b, a] = [a, b]
        console.log(a, b)
    </script>
</body>
</html>